﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Epam.PhotoGallery.Interfaces.DataTransferObjects.Category>" %>

<div class="categoryContainer">


<%if (Model.Image != null)
  {%>
     <% if (!Model.Image.IsUrlImage)
        {%>
 <img src="<%=Url.Action("GetCategoryImage","Community", new {categoryID=Model.ID}) %>" />
 
 <%} %>
 <%else
        { %>
   
   <img src="<%=Model.Image.Path %>" />

   <%} %>
   <%} %>


  <h3><%=Html.ActionLink(Model.Title,"GetTopicsFromCategory", new {categoryID=Model.ID}) %></h3>

  <div class="categoryDetails">
      <div class="description"><%=Model.Description %></div>
</div>



</div>
